package ru.kruzhki.shared.model;

import com.google.common.base.Objects.ToStringHelper;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Index;

/**
 * @author serg
 *
 */
@Entity
public class Company extends AbstractModel {
	@Index private String title;
	@Index private District district;
	private MetroStation metroStation;
	@Index  private String address;
	private String phone;
	private String url;
	private String email;
    private String annotation;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public MetroStation getMetroStation() {
		return metroStation;
	}
	public void setMetroStation(MetroStation metroStation) {
		this.metroStation = metroStation;
	}
	public District getDistrict() {
		return district;
	}
	public void setDistrict(District district) {
		this.district = district;
	}
    /**
     * @param currentValue
     */
    public void setAnnotation(String annotation) {
        this.annotation=annotation;
    }
    /**
     * @return the annotation
     */
    public String getAnnotation() {
        return annotation;
    }

    @Override
    protected ToStringHelper toStringHelper() {
        return super.toStringHelper().add("title", title);
    }
	
}
